#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_light_clicked()
{
    ui->textEdit->setStyleSheet("color:#000000");
    ui->textEdit->setStyleSheet("background-color:#FFFFFF");
    ui->pushButton_light->setStyleSheet("color:#000000");
    ui->pushButton_dark->setStyleSheet("color:#000000");
    this->setStyleSheet("background-color: #f3f3f3");
}

void Widget::on_pushButton_dark_clicked()
{

    ui->textEdit->setStyleSheet("background-color:#333;color:#FFFFFF;");

    ui->pushButton_light->setStyleSheet("color:#FFFFFF");
    ui->pushButton_dark->setStyleSheet("color:#FFFFFF");
    this->setStyleSheet("background-color:#333");

}
